n = int(input())
if n > 10:
    s = 25 + (n-10) * 1.5
else:
    s = n * 2.5
    
print(format(s,".2f"))

    